from app import db


class Admin(db.Model):
    __tablename__ = 'tbl_admin'
    Admin_id = db.Column(db.String(10), primary_key=True)
    Admin_log_id = db.Column(db.String(10), nullable=False)
    Admin_name = db.Column(db.String(20), nullable=False)

    def to_json(self):
        return {
            "Admin_id": self.Admin_id,
            "Admin_log_id": self.Admin_log_id,
            "Admin_name": self.Admin_name,
        }
